package com.cabinet.service.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import com.cabinet.web.entity.Ceposit;

public interface CepositDao extends JpaRepository<Ceposit, Long>,JpaSpecificationExecutor<Ceposit>{

	@Query("select c from Ceposit c where c.userId = ?1 order by c.id desc")
	public List<Ceposit> getCepositList(Long uid);
	
}
